package com.example.interview;

import java.text.SimpleDateFormat;
import java.util.logging.Formatter;

/**
 * @author liangxin
 * @since 07/08/2019
 */
public class UtilMy {
    static SimpleDateFormat ddf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String millis2time(Long currentTimeMillis){
        String res = ddf.format(currentTimeMillis);
        return res;
    }

}
